-
Home
-
Shield: Blocks Bots, Protects Users, and Prevents Security Breaches
-
20.0.4
-
Code
-
Classes
- IpRuleStatus
| Total Complexity |
79 |
| Dependencies |
10 |
| Dependents |
23 |
| Total lines |
358 |
| Lines of code |
256 |
| Logical lines of code |
136 |
| Comment lines |
43 |
| Methods |
28 |
| Properties |
4 |
Methods 28
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| getRulesForAutoBlock() |
A |
47 |
9 |
36 |
| purgeDuplicateRulesForWhiteAndBlack() |
A |
51 |
9 |
27 |
| getRanges() |
S |
49 |
6 |
31 |
| loadRecordsForIP() |
S |
53 |
6 |
22 |
| isUnBlocked() |
S |
58 |
6 |
16 |
| getRules() |
S |
57 |
5 |
17 |
| getBypasses() |
S |
50 |
4 |
30 |
| hasCrowdsecBlock() |
S |
64 |
3 |
10 |
| hasAutoBlock() |
S |
74 |
3 |
4 |
| isBlockedByShield() |
S |
78 |
3 |
3 |
| removeRecordFromCache() |
S |
68 |
3 |
7 |
| getBlockType() |
S |
78 |
2 |
3 |
| getOffenses() |
S |
75 |
2 |
4 |
| getRuleForAutoBlock() |
S |
74 |
2 |
4 |
| isBlockedByCrowdsec() |
S |
79 |
2 |
3 |
| isBlocked() |
S |
79 |
2 |
3 |
| __construct() |
S |
81 |
1 |
3 |
| getRulesForCrowdsec() |
S |
79 |
1 |
3 |
| getRulesForBypass() |
S |
78 |
1 |
3 |
| getRulesForManualBlock() |
S |
78 |
1 |
3 |
| getRulesForShieldBlock() |
S |
79 |
1 |
3 |
| getRulesForBlock() |
S |
78 |
1 |
3 |
| isBypass() |
S |
80 |
1 |
3 |
| hasManualBlock() |
S |
80 |
1 |
3 |
| hasRules() |
S |
80 |
1 |
3 |
| isAutoBlacklisted() |
S |
80 |
1 |
3 |
| ClearStatusForIP() |
S |
79 |
1 |
3 |
| getIP() |
S |
82 |
1 |
3 |